#include"process.h"

char str[STR]={'-','>','*','#','~'};
void Process()
{
    int cnt = 0;
    char bar[101];
    //初始化一下
    memset(bar,0,sizeof(bar));
    const char* arr="-/|\\";
    while(cnt<=100)
    {
        printf("[%-100s][%d%%][%c]\r",bar,cnt,arr[cnt%4]);
        fflush(stdout);
        bar[cnt++]=str[N];
        usleep(50000);
    }
    printf("\n");
}
